#!/usr/bin/env sh

export PATH=$PATH:./Tools/

#rm -rf biz/*

Tools/protoc \
--proto_path=Dependency/jeak_proto/Common  \
--plugin=Tools/protoc-gen-go-grpc \
--go-grpc_opt=paths=source_relative \
--go-grpc_out=. \
--plugin==Tools/protoc-gen-go \
--go_opt=paths=source_relative \
--go_out=. \
-I Dependency/jeak_proto/Common \
Dependency/jeak_proto/Common/*.proto

Tools/protoc \
--proto_path=Dependency/jeak_proto/Gateway \
--plugin=Tools/protoc-gen-go-grpc \
--go-grpc_opt=paths=source_relative \
--go-grpc_out=. \
--plugin==Tools/protoc-gen-go \
--go_opt=paths=source_relative \
--go_out=. \
-I Dependency/jeak_proto/Common \
Dependency/jeak_proto/Gateway/*.proto

